<template>
	<div id="app">
	<!-- 头部放回 -->
	<van-nav-bar v-if='this.$route.meta.isTab'
	  :title="this.$route.meta.title"
	  left-text="返回"
	  left-arrow
	  @click-left="onClickLeft"
	 
	/>
	
<!-- 底部导航栏 start -->
		<div>
			<router-view></router-view>
		</div>
		<van-tabbar route v-if='!this.$route.meta.isTab'>
			 <van-tabbar-item replace to="/longin" icon="home-o">首页</van-tabbar-item>
			  <van-tabbar-item replace to="/classify" icon="apps-o">分类</van-tabbar-item>
		  <van-tabbar-item replace to="/gwc" icon="shopping-cart-o">购物车</van-tabbar-item>
		  <van-tabbar-item replace to="/my" icon="friends-o">我的</van-tabbar-item>
		</van-tabbar>
		 <!-- 地导航栏 end -->
		 
	</div>
</template>

<script>
	import {
		
		Tabbar,
		TabbarItem,
		NavBar
	} from 'vant';
	
	export default {
		name: 'App',
		data() {
			return {
				active:'0',
				
			};
		},
		components: {
			[Tabbar.name]: Tabbar,
			[TabbarItem.name]: TabbarItem ,
			[NavBar.name]: NavBar ,
		},
	methods: {
	  onClickLeft() {
	    this.$router.go(-1)
	  },
	 
	},
	created() {
		
			console.log(this.$router.history.current.path)
	},
	}

</script>

<style>
	
</style>
